﻿using System;

namespace SpiderMaster.AspNet.TradingSystem
{
    public partial class ImageManager
    {
        public static String GetImageSizeFileNameToken(ImageType ImageType, ImageSize ImageSize)
        {
            switch (ImageType)
            {
                case ImageType.ReserveFlag:
                    switch (ImageSize)
                    {
                        case ImageSize.Small:
                            return "Sm";
                        case ImageSize.Medium:
                            return "Md";
                        case ImageSize.Full:
                            return "Lg";
                        default:
                            throw new NotImplementedException();
                    }
                case ImageType.CategoryBrowse:
                    return "Icon";
                case ImageType.LocationBrowse:
                    return "Icon";
                default:
                    throw new NotImplementedException();
            }
        }
    }
}